import request from '@/api/request'

function orderBackList(data) {
    return request({
        url: '/api/leju/admin/orderBack/list',
        method: 'get',
        data
    })
}

function orderBackDetail(data) {
    return request({
        url: '/api/leju/admin/orderBack/detail',
        method: 'get',
        data
    })
}

function orderBackPrice(data) {
    return request({
        url: "/api/leju/admin/orderBack/agreeBack",
        method: 'post',
        data
    })
}

function rejectBack(data) {
    return request({
        url: "/api/leju/admin/orderBack/rejectBack",
        method: 'post',
        data
    })
}

function orderBackDone(data) {
    return request({
        url: '/api/leju/admin/orderBack/backDone',
        method: 'post',
        data
    })
}

function orderBackClose(data) {
    return request({
        url: "/api/leju/admin/orderBack/closeOrder",
        method: 'post',
        data
    })
}

export default {
    orderBackList,
    orderBackDetail,
    orderBackPrice,
    rejectBack,
    orderBackDone,
    orderBackClose
}